package cn.ut.pc.one.xkb.controller;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiongkaibin
 */
@RestController
public class FallbackController {
    @RequestMapping("/fallback")
    public ResponseEntity fallback() {
        return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE).body("服务暂不可用");
    }

    @RequestMapping("/clientFallback")
    public ResponseEntity clientFallback(){
        return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE).body("eureka-client服务暂不可用");
    }
}
